#!/bin/bash
export PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
/opt/apps/$PACKAGE_NAME/files/bin/ace-init

if [ "${PACKAGE_NAME}" = "amber-ce-loongnix" ];then
systemctl daemon-reload
systemctl enable ace-loongnix-auto-upgrade
systemctl start ace-loongnix-auto-upgrade
fi
